package tothreedesignmodel.iterator;

/**
 * @author lzhphantom
 * @description
 * @date 创建于 23:31 2020/8/1
 * @modified
 */
public interface Iterator<T> {
    /**
     * first
     *
     * @return Object
     * @description
     * @author lzhphantom
     * @date 23:32 2020/8/1
     */
    T first();

    /**
     * next
     *
     * @return Object
     * @description
     * @author lzhphantom
     * @date 23:32 2020/8/1
     */
    T next();

    /**
     * hasNext
     *
     * @return boolean
     * @description
     * @author lzhphantom
     * @date 23:33 2020/8/1
     */
    boolean hasNext();
}
